%{
#include <stdio.h>
#include "bruch.h"
#include "y.tab.h"
char * text;

%}

%%
[0-9]\/[0-9]    yylval.rtio=ratio_fromString(yytext); return RATIO;
\:              return DIV;
\+              return PLUS;
\-              return MINUS;
\*              return MULT;
[ \t]+          /* ignore whitespace */;
\n              /* ignore end of line */;
\;              return END;
exit			return EXIT;
%%
